import { defineStore } from "pinia";
import { ref } from "vue";
export const useActivityStore = defineStore("activity", () => {
  const activityId = ref("");
  const setActivityId = (id) => {
    activityId.value = id;
    console.log("传入了id" + activityId.value);
  };
  const getActivityId = () => {
    console.log("返回了id" + activityId.value);
    return activityId.value;
  };
  return {
    activityId,
    setActivityId,
    getActivityId,
  };
});
